package com.secxiot.provider.narcotic.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * 取药入参
 */
@ApiModel
@Data
@ToString
public class TakeDestroyDo {

    @ApiModelProperty(value = "取药id", required = true)
    private Long takeDestroyId;

    @ApiModelProperty(value = "取药附件", required = false)
    private String takeMedicineFile;

    @ApiModelProperty(value = "药品批号", required = true)
    private String batchNo;

    @ApiModelProperty(value = "药品有效期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date validTime;

    @ApiModelProperty(value = "发药人Id", required = true)
    private Long sendMedicineUserId;

    @ApiModelProperty(value = "销毁数量", required = false)
    private Integer recycleNum;

    @ApiModelProperty(value = "销毁备注", required = false)
    private String recycleRemark;

    @ApiModelProperty(value = "销毁附件", required = false)
    private String destroyFile;

    @ApiModelProperty(value = "厂家id", required = true)
    private Integer drugsFactoryId;
}
